using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ERP.WorkforceManage.Dtos
{
    /// <summary>
    /// 更新班组DTO
    /// </summary>
    public class UpdateTeamDto
    {
        /// <summary>
        /// 班组名称
        /// </summary>
        [Required(ErrorMessage = "班组名称不能为空")]
        [StringLength(50, ErrorMessage = "班组名称长度不能超过50个字符")]
        public string TeamName { get; set; }

        /// <summary>
        /// 班组类型
        /// </summary>
        [StringLength(20, ErrorMessage = "班组类型长度不能超过20个字符")]
        public string TeamType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(200, ErrorMessage = "描述长度不能超过200个字符")]
        public string Descr { get; set; }

        /// <summary>
        /// 班组成员ID列表
        /// </summary>
        public List<int> MemberIds { get; set; } = new List<int>();
    }
} 